﻿@{this.Init(layout: "~/_SiteLayout.cshtml", title: "Forget Your Password?", action: Account.ForgotPassword.Init);} 
 
<form method="post" action="">
    <fieldset>
        <legend>Password Reset Instructions Form</legend>
        @if (!WebMail.SmtpServer.IsEmpty()) {
            <p>
                We will send password reset instructions to the email address associated with your account. 
            </p>
            if (Page.IsReadonly) {
                <p class="message success">
                    Instructions to reset your password have been sent to the specified email address.
                </p>
            }            
            <ol>
                <li class="email">
                    <label for="email">Email Address</label>
                    <input type="text" id="email" name="email" title="Email address" value="@Page.Model.Email" @if(Page.IsReadonly){<text>disabled="disabled"</text>} @if(Page.Errors.Email.IsError){<text>class="error-field"</text>} />
                    @if (Page.Errors.Email.IsError) {
                        <label class="validation-error">@Page.Errors.Email.Message</label>
                    }
                </li>
            </ol>
            <p class="form-actions">
                <input type="submit" value="Send Instructions" @if(Page.IsReadonly){<text>disabled="disabled"</text>}/>
            </p>
        } else {
            <p class="message info">
                Password recovery is disabled for this website because the SMTP server is 
                not configured correctly. Please contact the owner of this site to reset 
                your password.
            </p>
        }
    </fieldset>
</form>